ifeq ($(TOP_DIR),)
ifeq ($(TARGET_PRODUCT),cloud)
EXTRA_CFLAGS += -DCFG_SOC_PLATFORM_1920
endif

ifeq ($(fpga),true)
EXTRA_CFLAGS += -DTEMP_FPGA_B100
endif

KERNEL_DIR :=$(srctree)
EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc
EXTRA_CFLAGS += -I$(PWD)/inc/soc/mini_v1
EXTRA_CFLAGS += -I$(PWD)/inc/driver
EXTRA_CFLAGS += -I$(PWD)/libc_sec/include
EXTRA_CFLAGS += -I$(PWD)/drivers/dev_plat/mdio

obj-m   += drv_gmac.o
drv_gmac-objs := higmac.o
else
ifeq ($(PRODUCT),ascend910)
EXTRA_CFLAGS += -DCFG_SOC_PLATFORM_1920
endif

ifeq ($(fpga),true)
EXTRA_CFLAGS += -DTEMP_FPGA_B100
endif


EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc
EXTRA_CFLAGS += -I$(TOP_DIR)/inc/soc/mini_v1
EXTRA_CFLAGS += -I$(TOP_DIR)/inc/driver
EXTRA_CFLAGS += -I$(TOP_DIR)/libc_sec/include
EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_plat/mdio

obj-m   += drv_gmac.o
drv_gmac-objs := higmac.o


endif